package com.zhbr.api;


import com.zhbr.entity.Account;
import com.zhbr.entity.BaseResponse;
import com.zhbr.entity.MPageInfo;
import com.zhbr.entity.TGdfwPqgd;

import java.util.List;
import java.util.Map;

import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;
import rx.Observable;


public interface IApiService {

    /**
     * 测试
     */
    @POST("account/login")
    Observable<BaseResponse<Account>> login(@Body Map params);

    @POST("account/register")
    Observable<BaseResponse<Account>> register(@Body Map params);

    @GET("account/getAccountInfo")
    Observable<BaseResponse<Account>> getAccountInfo();

    @GET("pqgd/getAll")
    Observable<BaseResponse<MPageInfo<List<TGdfwPqgd>>>> getAllOrder(@Query("pageNum") int pageNum,@Query("pageSize") int pageSize);

    @GET("pqgd/getAll")
    Call<MPageInfo<String>> getAllOrder1(@Query("pageNum") int pageNum, @Query("pageSize") int pageSize);

}
